package com.baymax.study.base.cyclic_dependence;

import com.baymax.study.base.cyclic_dependence.services.AService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.annotation.ComponentScan;

public class CycleTestClient {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext(ScanConfig.class);
        AService aService = context.getBean(AService.class);
        aService.print();
    }

    @ComponentScan("com.baymax.study.base.cyclic_dependence")
    static class ScanConfig {
    }
}
